<div class="infos_view_full">
    <div class="title">
        <?php echo CHtml::link(CHtml::encode($data->title), array('posts/view', 'node' => $data->node_id, 'id' => $data->id), array('title' => CHtml::encode($data->title))); ?>
    </div>
    <div class="other">
        <?php echo $data->user->username . ' 发布于 ' . date('Y-m-d', $data->created); ?>
        <span></span>
        浏览次数: <?php echo $data->clicks_count; ?>
    </div>
    <div class="content">
        <?php
        $this->beginWidget('CMarkdown', array('purifyOutput' => true));
        if (isset($expand) && $expand = true) {
            // 显示全部内容
            echo $data->body;
        } else {
            // 截取指定字符数显示
            echo YUtil::substr(CModifier::Html2Text($data->body), 200,
                CHtml::link('　[ 查看详情 ... ]', array('posts/view', 'node' => $data->node_id, 'id' => $data->id)));
        }
        $this->endWidget();
        ?>
    </div>
    <div class="footer">
        <p class="tags">
            <strong>Tags:</strong>  <?php echo implode(', ', $data->tagLinks); ?>
        </p>
        <p class="others">
            <?php
            echo CHtml::link("评论 ({$data->commentCount})", $data->url . '#comments');
            ?> | 最后更新: <?php echo date('Y-m-d H:m:s', $data->updated); ?>
        </p>
    </div>
</div>